home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_10
/
9n10104a
< prev
next >
Wrap
Text File
|
1991-07-22
|
470b
|
25 lines
#include <X11/Xlib.h>
#include <X11/extensions/shape.h>
Display *display;
int shape_status;
int major_version, minor_version;
/* Open display connection... */
/*
* Check if we have the SHAPE extension
*/
shape_status = XShapeQueryVersion( display,
&major_version,
&minor_version );
if( shape_status != 0 )
{
printf( "SHAPE extension supported ver.%d.%d\n",
major_version, minor_version );
/* ... */
}